package org.clever.dropwizard.model;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;

/**
 * 作者： lzw<br/>
 * 创建时间：2019-01-24 10:09 <br/>
 */
@Data
@NoArgsConstructor
public class Saying implements Serializable {

    private long id;

    @Length(max = 3)
    private String content;
    
    public Saying(long id, String content) {
        this.id = id;
        this.content = content;
    }
}
